<h2>My Orders</h2>

<?php
$orders = $this->orders;

if (0 == sizeof($orders))
{
	?>
	<p>No items found.</p>
	<?php
}
else
{
	?>
		<?php
		foreach ($orders as $item)
		{
			$addDate = date('H:i, d M Y',strtotime($item['added']));
			?>
			<div class="grid_11 alpha omega">
				<div class="grid_6 alpha"><a href="/account/order/id/<?php echo $item['id'];?>"><?php echo $this->escape($item['restaurant_name']); ?></a></div>
				<div class="grid_3 alpha"><?php echo $addDate; ?></div>
				<div class="grid_2 omega"><?php echo $this->escape(money_format('%(#10n',$item['total_amount']+$item['delivery_cost'])); ?></div>
			</div>
			<div class="clear"></div>
			<?php
		}
		?>
	<?php
	echo $this->paginationControl($this->orders, 'Sliding', 'pagination.phtml');
}